import request from "@/utils/request";

// 查询纸张类别列表
export function getPaperTypes(name, productId) {
  return request({
    url: `/singlePage/numeral/paperTypes?name=${name}&productId=${productId}`,
    method: "get",
  });
}

// 查询印刷颜色列表
export function getColorList(name, productId, type) {
  return request({
    url: `/singlePage/numeral/colorList?name=${name}&productId=${productId}&type=${type}`,
    method: "get",
  });
}

// 保存产品纸张关系信息
export function addProductPaper(data) {
  return request({
    url: "/singlePage/numeral/saveProductPaper",
    method: "post",
    data: data,
  });
}

// 保存产品颜色关系信息
export function addProductColor(data) {
  return request({
    url: "/singlePage/numeral/saveProductColor",
    method: "post",
    data: data,
  });
}
